//引入 配置后的axios
import axios from '../braxios'
//获取首页轮播图
export const getHomeCarousel = ()=>axios.get("/home/swiperdata");
//获取首页导航栏数据
export const getHomeNavItmes = ()=>axios.get("/home/catitems");
//获取首页图片列表
export const getHomePicList = ()=>axios.get("/home/floordata");
//获取商品详情页信息
export const getGoodDetail = (goods_id)=>axios.get("/goods/detail",{
    params:goods_id
});
//商品搜索
export const searchGoods = (query)=>axios.get("/goods/qsearch",{
    params:query
});
//获取商品列表
export const getGoodList = (params)=>axios.get("/goods/search",{
    params:params
});
//获取商品分类信息
export const getGoodCategory = ()=>axios.get("/categories").catch(err=>console.log(err));
